[

// ===== PATCHED =====

/*
define staticarray->find(value::any, offset::integer=1) => {
	local(output) = array
	with cnt in #offset to .size
	where #value == .get(#cnt) || ('pair,keyword' >> .get(#cnt)->type && #value == .get(#cnt)->name) 
	do #output->insert(.get(#cnt))
	return(#output)
}
//staticarray('a' = 1, 'a', 'b')->find('a',2)

define staticarray->contains(value::any) => {
	.foreach =>	{ 'pair,keyword' >> #1->type
					? (#value == #1->name ? return(true))
					| (#value == #1 ? return(true))
				}
	return(false)
}
// staticarray('abc'=1) >> 'abc'
// staticarray('abc'=1)->contains('abc')

*/

define staticarray->+(rhs::string)::string => .asString + #rhs
// staticarray+string

define staticarray->get(k::pair_compare) => {
    local(p) = .find(#k)
    #p->size > 0 ? return(#p->first) | return(void)
}

define staticarray->random => .size == 0 ? return void | return .get(math_random(1,.size))
//staticarray('a','b','c')->random


]